package com.auxgroup.hr.front.service.modperson.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.auxgroup.hr.front.commons.utils.ObjectFieldUtils;
import com.auxgroup.hr.front.dao.domain.PsCModBankacct;
import com.auxgroup.hr.front.dao.repository.PsCModBankacctRepository;
import com.auxgroup.hr.front.service.modperson.ModBankacctService;

/** 
 * @author lvliuhao
 * @version 创建时间：180526 
 * 银行卡流程信息service
 */
@Service("modBankacctService")
public class ModBankacctServiceImpl implements ModBankacctService {
	
	@Autowired
	private PsCModBankacctRepository PsCModBankacctRepository;


	@Override
	public PsCModBankacct getModBankacct(String transNum) {
		return PsCModBankacctRepository.findOne(transNum);
	}


	@Override
	public PsCModBankacct save(PsCModBankacct ModBankacct) {
		ModBankacct.setCountryCd("CHN");
		ObjectFieldUtils.handleNullValue(ModBankacct);
		return PsCModBankacctRepository.save(ModBankacct);
	}
}
